package com.ruoyi.commerce.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Collection;
import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购单业务对象 commerce_purchase
 *
 * @author ruoyi
 * @date 2024-01-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CommercePurchaseBo extends BaseEntity {

    /**
     * 采购单id
     */
    @NotNull(message = "采购单id不能为空", groups = { EditGroup.class })
    private Long purchaseId;

    /**
     * 采购日期
     */
    @NotNull(message = "采购日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date orderDate;

    /**
     * 到货日期
     */
    private Date arrivalDate;

    /**
     * 采购总积分
     */
    @NotNull(message = "采购总积分不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal totalAmount;

    /**
     * 采购状态
     */
    private String status;

    /**
     * 订单ids
     */
    private Collection<Long> orderIds;

}
